package com.nosnow.vod.service;

import org.springframework.web.multipart.MultipartFile;

import java.util.List;

/**
 * @author by bingHeng
 * @version 1.0
 * @Create 2020/4/11 14:08
 */
public interface VodService {

    /**
     * 上传视频到阿里视频点播，并返回视频Id
     * @param file
     * @return
     */
    String uploadAlyVideo(MultipartFile file) throws Exception;

    /**
     * 根据视频Id删除阿里云端视频
     * @param id
     */
    void deleteAlyVideo(String id) throws Exception;

    /**
     * 根据视频Id集合批量删除阿里云端视频
     * @param videoIdList
     * @throws Exception
     */
    void deleteAlyVideos(List<String> videoIdList) throws Exception;

}
